Skip to content

Commit ed7c12d

Browse files
authored
Switch moderation queue to celery (#6691)
1 parent 8585b42 commit ed7c12d

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

kitsune/questions/models.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import actstream
99
import actstream.actions
10-
import waffle
1110
from django.conf import settings
1211
from django.contrib.auth.models import User
1312
from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation
@@ -205,21 +204,8 @@ def save(self, update=False, *args, **kwargs):
205204
# actstream
206205
# Authors should automatically follow their own questions.
207206
actstream.actions.follow(self.creator, self, send_action=False, actor_only=False)
208-
if waffle.switch_is_active("flagit-spam-autoflag"):
209-
from kitsune.questions.utils import flag_question
210-
from kitsune.users.models import Profile
211-
212-
flag_question(
213-
self,
214-
by_user=Profile.get_sumo_bot(),
215-
notes=(
216-
"Automatically flagged for topic moderation:"
217-
" flagit-spam-autoflag is active"
218-
),
219-
)
220-
else:
221-
# Either automatically classify the question or add it to the moderation queue
222-
question_classifier.delay(self.id)
207+
# Either automatically classify the question or add it to the moderation queue
208+
question_classifier.delay(self.id)
223209

224210
def add_metadata(self, **kwargs):
225211
"""Add (save to db) the passed in metadata.

0 commit comments

Comments
 (0)